﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;

namespace ERPForms
{
    public partial class BanciFrm : FrmRezumat
    {
        public BanciFrm(ModuleClass mInfo)
            : base(mInfo)
        {
            InitializeComponent();
            workConnString = mInfo.workConnectionString;
            ActiveControl = banciDGV;
        }

        private void BanciFrm_Load(object sender, EventArgs e)
        {
            this.banciTableAdapter.Connection = DeschideConexiune(workConnString);
            this.banciTableAdapter.Fill(this.eSRPDataSet.Banci);
            InchideConexiune(banciTableAdapter.Connection);
            this.listBndSourceMain.Add(banciBindingSource);
            this.listTableAdaptor.Add(this.banciTableAdapter.Adapter);

            AddButton("Salvare", global::ERPStudio.Properties.Resources.salvare, Salvare, ToolStripItemAlignment.Right, true);
            /// functia care se apeleaza in momentul in care se apasa F9
            HandleSalvare += new EventHandler(Salvare);
        }
    }
}
